package cn.simon.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;
import org.springframework.transaction.support.CallbackPreferringPlatformTransactionManager;

@AllArgsConstructor
@ToString
@Getter
public enum RespBeanEnum {
    //通用
    SUCCESS(200,"SUCCESS"),
    ERROR(500,"服务器异常"),

    PATH_NOTEXIST(500218,"秒杀地址未找到"),

    SESSION_USER_NOEXCIT(500215,"用户不存在"),

    SESSION_ERROR(500216,"非法请求"),

    PHONE_NOTEXIST(500213,"手机号码不存在"),

    ORDER_NOEXIST(500217,"当前订单不存在"),

    UPDATE_PHONE_FAIL(500214,"修改密码操作失败"),

    MOBILE_ERROR(500211,"手机号码格式"),

    BIND_ERROR(500212,"参数校验异常"),
    //登录模块
    LOGIN_ERROR(500210,"用户名或密码不正确"),
    //订单异常
    STOCK_EMPETY(500500,"库存不足"),
    REPATER_SECKILL(500501,"一件商品只能秒杀一次"),

    CAPTCHA_NOTEXIST(500502,"请输入验证码"),

    CAPTCHA_ERROR(500503,"验证码有误！请重新输入");

    private final Integer code;
    private final String message;
}
